include_directories(
    ${PROJECT_SOURCE_DIR}/framework/core
    ${PROJECT_SOURCE_DIR}/framework/inc/exinc
    ${PROJECT_SOURCE_DIR}/framework/inc/osinc
    ${PROJECT_SOURCE_DIR}/framework/src/osimp
    ${PROJECT_SOURCE_DIR}/deps/libuv-1.x/include
    ${PROJECT_SOURCE_DIR}/deprecated/fdbus/public
    ${PROJECT_SOURCE_DIR}/deprecated/protobuf/src
)

LINK_DIRECTORIES(
    ${PROJECT_SOURCE_DIR}/deprecated/fdbus/build
    ${PROJECT_SOURCE_DIR}/deprecated/protobuf/build
)
set(LIB_HEADERS

)
set(LIB_SRCS
    ThreadServlet.cpp
    LinuxSignal.cpp
    FDBusServlet.cpp
    MsgQServlet.cpp
    DomainServlet.cpp
    TCPServlet.cpp
    EpollServlet.cpp
    LibuvServlet.cpp
)
add_library(osimp ${LIB_SRCS} ${LIB_HEADERS})

set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
target_link_libraries(osimp pthread)
set_target_properties(osimp PROPERTIES OUTPUT_NAME "osimp" )

